#include "OpenGL.h"

OpenGL::OpenGL(int fov, float min_dis, float max_dis)
{
    glMatrixMode( GL_PROJECTION );
    glLoadIdentity();
    gluPerspective(fov,(double)800/600,min_dis,max_dis);
    //ctor
}

OpenGL::~OpenGL()
{
    //dtor
}

void    OpenGL::initDraw()
{
        glEnable(GL_DEPTH_TEST);
        glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);
        glMatrixMode(GL_MODELVIEW);
        glLoadIdentity();
}
